home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / lib / gcc-lib / ppc-amigaos / 2.95.1 / sys-include / mgl / clip.h next >
C/C++ Source or Header  |  2000-03-13  |  798b  |  40 lines

  1. /*
  2.  * $Id: clip.h,v 1.2 2000/01/10 01:10:48 tfrieden Exp $
  3.  *
  4.  * $Author: tfrieden $
  5.  *
  6.  * $Date: 2000/01/10 01:10:48 $
  7.  * $Revision: 1.2 $
  8.  *
  9.  * (C) 1999 by Hyperion Software
  10.  * All rights reserved
  11.  *
  12.  * This file is part of the MiniGL library project
  13.  * See the file Licence.txt for more details
  14.  *
  15.  */
  16.  
  17.  
  18. #ifndef _CLIP_H
  19. #define _CLIP_H
  20.  
  21. void        hc_CodePoint(MGLVertex *v);
  22. GLboolean   hc_DecideFrontface(GLcontext context, MGLVertex *a, MGLVertex *b, MGLVertex *c, GLubyte outcode);
  23.  
  24. /*
  25. ** This structure holds the polygon data for clipping.
  26. */
  27. typedef struct MGLPolygon_t
  28. {
  29.     int numverts;
  30.     int verts[MGL_MAXVERTS];
  31. } MGLPolygon;
  32.  
  33. void        dh_DrawPoly(GLcontext context, MGLPolygon *poly);
  34. void        hc_ClipAndDrawPoly(GLcontext context, MGLPolygon *poly, GLubyte or_codes);
  35.  
  36. #endif
  37.  
  38.  
  39.  
  40.